<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: zyh
  Date: 2021/10/29
  Time: 15:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form method='post' action="${ctx}/emp?method=updateEmp">
    <table>
        <tr>
            <td>账号</td>
            <td><input type='text' name='username' value="${emp.ename}"></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type='password' name='pwd' value="${emp.pwd}"></td>
        </tr>
        <tr>
            <td>性别</td>

                <c:if test="${emp.esex=='男'}">
            <td><input type='radio' name='esex' value='男' checked>男
                    <input type='radio' name='esex' value='女'>女</td>
                </c:if>
                <c:if test="${emp.esex=='女'}">
                    <td>  <input type='radio' name='esex' value='男' >男
                    <input type='radio' name='esex' value='女'checked>女</td>
                </c:if>

        </tr>
        <tr>
            <td>工资</td>
            <td><input type='number' name='salary' value="${emp.salary}"></td>
        </tr>
        <tr>
            <td>部门</td>
            <td><input type='number' name='dno' value="${emp.dno}"></td>
        </tr>
        <tr>
            <td>日期</td>
            <td><input type='date' name='date' value="${emp.date}">
                <input type='hidden' name='eno' value="${emp.eno}"></td>
        </tr>
        <tr>
            <td><input type='submit'></td>
            <td><input type="reset"> </td>
        </tr>
    </table>
    </form>
</body>
</html>
